package com.ljl.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@TableName(value = "gl_user")
public class User {

    @TableId(type = IdType.AUTO )

    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private String email;
    private String phone;
//    @TableField(value = "sys_address")    指定数据库表名称
    private String address;
    private String avatar;
    private Date createtime;
    private String role;
}
